import App from './App';
import * as Pinia from 'pinia';
import vue3GoogleLogin from 'vue3-google-login'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App);
  app.use(Pinia.createPinia());
  app.use(vue3GoogleLogin, {
    clientId: '532091178619-9ho6id003nhnimt9sg02nkp4dhua0qvq.apps.googleusercontent.com' // 使用您从 Google 开发者控制台获得的 Client ID
  })
  
  return {
    app,
	Pinia
  }
}
// #endif